Skip to content

Conversation

@oulianov
Copy link

@oulianov oulianov commented Jan 15, 2025

What this does

Hey!

The parameter imgs_dir was typed as a str or Path, but the function doesn't work if imgs_dir is not a Path due to line below:

("-i", str(imgs_dir / "frame_%06d.png")),

This PR fixes this by casting imgs_dir to a Path.

How it was tested

mypy

@oulianov oulianov changed the title Fix: Add support for str imgs_dir Fix: Add support for str imgs_dir in encode_video_frames Jan 15, 2025
@CarolinePascal
Copy link
Collaborator

Hi @oulianov !

Thank you for your PR and contribution to LeRobot library ! Unfortunately, It seems we didn't get to see your PR in time, and that the issue has been solved and merged in #915. I'm closing your PR, but feel free to fill more of them with new fixes ;)

Best,

Caroline.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants